package com.example.springbootdesign.controller;

import com.example.springbootdesign.util.MyLogger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    private MyLogger myLogger = new MyLogger();

    @RequestMapping("/login")
    public String login(String username, String password) {
        System.out.println("logined!!!!!!!");
        myLogger.log(username + " logined!");
        return "login";
    }
}
